package wzc.design_pattern.creation.prototype.shallow_copy;

import java.util.List;

/**
 * @Author 王振川
 * @Date 2025/7/19
 */

public class Person implements Cloneable {
    String name;
    List<String> hobbies;

    public Person(String name, List<String> hobbies) {
        this.name = name;
        this.hobbies = hobbies;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
